<?php
//资源路由个人中心
Route::resource('personal','personalController');
//用户中心
Route::get('userinfo','personalController@userinfo');
//个人安全中心
Route::get('gerenanquan','personalController@gerenanquan');
//修改密码
Route::get('mima','personalController@mima');
//地址展示
Route::get('dizhi','personalController@dizhi');
//地址添加
Route::get('address','personalController@address');
//订单列表
Route::get('dingdan','personalController@dingdan');
//未评价的订单
Route::get('dingdan2','personalController@dingdan2');
//订单评价
Route::get('pingjia/{id}/{mid}','personalController@pingjia');
//添加评价
Route::post('addPingjia','personalController@addPingjia');
//用户电话修改
Route::get('phone','personalController@phone');
//用户邮箱修改
Route::get('mail','personalController@mail');
//用户名修改
Route::get('username','personalController@username');
//邮件发送
Route::get('mail/send','personalController@send');
//头像上传
Route::get('photo','personalController@photo');
Route::post('photo','personalController@photofrom');

//修改密码
Route::post('updateMima','personalController@updateMima');
//修改用户名
Route::post('updateName','personalController@updateName');
//修改电话
Route::post('updatePhone','personalController@updatePhone');
//修改邮箱
Route::post('updateMail','personalController@updateMail');
//添加地址
Route::post('addAddress','personalController@addAddress');
//删除地址
Route::get('deleteAdress/{id}','personalController@deleteAdress');
//后台管理员资源路由
Route::resource('guanliyuan','GuanliyuanController');